package com.bobo.controller.front.pub;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by bobo on 16-11-4.
 */
public class SetPage {


    public void set(HttpServletRequest request){

        int current = 1;
        int pageSize = 5;

        if(request.getParameter("current") != null) {
            current = Integer.parseInt(request.getParameter("current"));
        }

        if(request.getParameter("pageSize") != null) {
            pageSize = Integer.parseInt(request.getParameter("pageSize"));
        }
    }
}
